package edu.jamestang.yeb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.jamestang.yeb.entity.Department;
import edu.jamestang.yeb.util.Resp;

import java.util.List;

/**
 * @author JamesTang
 * @date 2021/12/16 1:50
 */
public interface DepartmentService extends IService<Department> {


    /**
     *  Get all department
     * @return Department list
     */
    List<Department> getAllDepartments();

    /**
     * add Department
     * @param department dep
     * @return Response
     */
    Resp addDep(Department department);

    /**
     * Delete department
     * @param id department id
     * @return Response
     */
    Resp deleteDep(Integer id);
}
